<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>
		<p:dialog header="Purchase Requisition Detail" widgetVar="itemDialog"
			modal="true" showEffect="fade" hideEffect="fade" resizable="false">
			<h:form id="formDlg">
				<p:outputPanel id="itemDetail" style="text-align:center;">
					<p:panelGrid columns="2"
						rendered="#{not empty dtPurchaseRequisitionLazyView.selectedItem}"
						columnClasses="label,value">
						
						<h:outputLabel value="Department/Project" />
						<h:outputText value="#{dtPurchaseRequisitionLazyView.selectedItem.project.description}" />
						
						<h:outputLabel value="Description" />
						<h:outputText value="#{dtPurchaseRequisitionLazyView.selectedItem.description}" />
						
						<h:outputLabel value="Requisition Date"/>
						<h:outputText value="#{dtPurchaseRequisitionLazyView.selectedItem.requisitionDate}">
							<f:convertDateTime pattern="MM/dd/yyyy h:mm a" />
						</h:outputText>

						<h:outputLabel value="Status" />
						<h:outputText value="#{dtPurchaseRequisitionLazyView.selectedItem.status}" />
						
					</p:panelGrid>
					
					<br/>
					
					<p:commandButton value="Export to PDF"
						action="#">
					</p:commandButton>
										

					<p:commandButton value="Open" ajax="false"
						action="#{createPurchaseRequisitionBean.edit}">
						<f:param name="prId"
							value="#{dtPurchaseRequisitionLazyView.selectedItem.id}" />
					</p:commandButton>
				</p:outputPanel>
			</h:form>
		</p:dialog>
	</ui:composition>
</body>
</html>